package main

import (
	_ "gitee.com/Hu-Lyndon/distill-resk"
	"gitee.com/Hu-Lyndon/distill-resk/infra"
	"github.com/tietang/props/ini"
	"github.com/tietang/props/kvs"
)

func main() {
	// 获取程序运行，所需配置文件的路径
	file := kvs.GetCurrentFilePath("config.ini", 1)
	conf := ini.NewIniFileConfigSource(file)
	app := infra.New(conf)
	app.Start()
	// 之前是因为没有阻塞的starter，有了Iris就不用下面的了
	//c := make(chan int)
	//<- c
}
